const mongoose = require('mongoose')

let TodoSchema = new mongoose.Schema({
    content:{
        type: String,
        required: true
    },
    done:{
        type:Boolean,
        default:false
    },
    pub_time: Date,
    imageUrl: String
})

let TodoModel = new mongoose.model('todos',TodoSchema)

module.exports = TodoModel